package events
{
	import flash.events.Event;

	/**
	 * 
	 * @author jrags
	 * 
	 */
	public class HealthEvent extends Event
	{
		public static const HEALTH_FAIL_DEATH_SAVE:String = "healthFailDeathSave";
		public static const HEALTH_UN_DIE:String = "healthUnDie";
		public static const HEALTH_DAMAGE:String = "healthDamage";
		public static const HEALTH_SET_TEMP:String = "healthSetTemp";
		public static const HEALTH_HEAL:String = "healthHeal";
		public static const HEALTH_REST:String = "healthRest";
		public static const HEALTH_EXTENDED_REST:String = "healthExtendedRest";
		
		private var _hitPoints:String;
		
		public function HealthEvent(type:String, hp:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this._hitPoints = hp;
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event 
		{
			return new HealthEvent(type, this._hitPoints, bubbles, cancelable);
		}
		
		public function get hitPoints():String
		{
			return this._hitPoints;
		}
	}
}